﻿<%@ Control Language="C#" AutoEventWireup="false" CodeBehind="SearchResult.ascx.cs" Inherits="ud_Article.UI.SearchResult" %>
<%@ Import Namespace="ud_Article.UI" %>
<asp:Literal ID="ltrAutoScrollCssSetup" runat="server" />
<asp:Literal ID="ltrScript" runat="server" />
<div class="blogwrapper">
    <asp:Panel ID="divblog" runat="server" CssClass="blogcenter-rightnav" SkinID="plain">
        <asp:Panel ID="pnlScrollable" runat="server">
            <div class="items">
                <asp:Repeater ID="rptBlogs" runat="server" SkinID="Blog" EnableViewState="True">
                    <ItemTemplate>
                        <asp:Panel ID="pnlBlogItem" runat="server" CssClass="blogitem">
                            <h3 class="blogtitle">
                                <asp:HyperLink SkinID="BlogTitle" ID="lnkTitle" runat="server" EnableViewState="false" ToolTip='<%# Eval("Heading") %>'
                                    Text='<%# FormatBlogTitle(DataBinder.Eval(Container.DataItem,"Heading").ToString(), Config.MaxNumberOfCharactersInTitleSetting) %>'
                                    Visible='<%# Config.UseLinkForHeading %>' NavigateUrl='<%# FormatBlogTitleUrl(DataBinder.Eval(Container.DataItem,"ItemUrl").ToString(), Convert.ToInt32(DataBinder.Eval(Container.DataItem,"ItemID")))  %>'>
                                </asp:HyperLink><asp:Literal ID="litTitle" runat="server" Text='<%# FormatBlogTitle(DataBinder.Eval(Container.DataItem,"Heading").ToString(), Config.MaxNumberOfCharactersInTitleSetting) %>'
                                    Visible='<%# !Config.UseLinkForHeading %>' />&nbsp;
                                </h3>
                            <div class="blogdate">
                                <span class="blogauthor">
                                    <%# FormatPostAuthor(DataBinder.Eval(Container.DataItem, "UserGuid").ToString())%></span>
                                </span>
                                <span class="bdate">
                                    <%# FormatBlogDate(Convert.ToDateTime(Eval("StartDate"))) %></span>
                            </div>
                            <asp:Panel ID="pnlPost" runat="server" Visible='<%# !Config.TitleOnly %>' CssClass="blogpost">
                                <portal:mojoRating runat="server" ID="Rating" Enabled='<%# EnableContentRating %>'
                                    ContentGuid='<%# new Guid(Eval("BlogGuid").ToString()) %>' AllowFeedback='false' />
                                <mp:OdiogoItem ID="od1" runat="server" OdiogoFeedId='<%# Config.OdiogoFeedId %>'
                                    ItemId='<%# DataBinder.Eval(Container.DataItem,"ItemID") %>' ItemTitle='<%# Eval("Heading") %>' />
                                <div class="blogtext">
                                    <div class='<%# "hideme mojo-dialog " + ModuleId + Eval("ItemID") %>' title='<%# Eval("Heading") %>'>
                                        <asp:Image ID="image2" runat="server" ImageUrl='<%# ArticleUtils.FormatImageDialog(ConfigurationManager.AppSettings["ArticleImagesFolder"], Eval("ImageUrl").ToString()) %>'
                                            Visible='<%# Config.ShowImage %>' CssClass='<%# "rimg" + ModuleId + Eval("ItemID") %>' />
                                    </div>
                                    <div class="image-wrapper">
                                        <a href='<%# ArticleUtils.FormatBlogTitleUrl(SiteRoot, Eval("ItemUrl").ToString(), Convert.ToInt32(Eval("ItemID")), PageId, ModuleId) %>'>
                                            <asp:Image ID="image1" runat="server" ImageUrl='<%# ArticleUtils.FormatImageArticle(ConfigurationManager.AppSettings["ArticleImagesFolder"], Eval("ImageUrl").ToString()) %>'
                                                Visible='<%# Config.ShowImage %>' CssClass='<%# "img" + ModuleId + Eval("ItemID") %>'
                                                ToolTip='<%# DataBinder.Eval(Container.DataItem,"Heading") %>' />
                                        </a>
                                    </div>
                                    <asp:Literal ID="ltrScriptDialog" runat="server" Visible='<%# Config.UseImageDialog %>' Text='<%# ArticleUtils.FormatDialogScript(ModuleId.ToString(), Eval("ItemID").ToString()) %>' />

                                    <div class="body">
                                        <%# FormatBlogEntry(DataBinder.Eval(Container.DataItem, "Description").ToString(), DataBinder.Eval(Container.DataItem, "Abstract").ToString(), DataBinder.Eval(Container.DataItem, "ItemUrl").ToString(), Convert.ToInt32(Eval("ItemID")))%></div>
                                </div>
                                <div class="blogcommentlink">
                                    <asp:HyperLink ID="Hyperlink2" runat="server" EnableViewState="false" Text='<%# FeedBackLabel + "(" + DataBinder.Eval(Container.DataItem,"CommentCount") + ")" %>'
                                        Visible='<%# Config.AllowComments && ShowCommentCounts %>' NavigateUrl='<%# FormatBlogUrl(DataBinder.Eval(Container.DataItem,"ItemUrl").ToString(), Convert.ToInt32(DataBinder.Eval(Container.DataItem,"ItemID")))  %>'
                                        CssClass="blogcommentlink"></asp:HyperLink>
                                    <asp:HyperLink ID="Hyperlink1" runat="server" EnableViewState="false" Text='<%# FeedBackLabel %>'
                                        Visible='<%# Config.AllowComments && !ShowCommentCounts %>' NavigateUrl='<%# FormatBlogUrl(DataBinder.Eval(Container.DataItem,"ItemUrl").ToString(), Convert.ToInt32(DataBinder.Eval(Container.DataItem,"ItemID")))  %>'
                                        CssClass="blogcommentlink"></asp:HyperLink>&#160;
                                </div>
                            </asp:Panel>
                        </asp:Panel>
                    </ItemTemplate>
                </asp:Repeater>
            </div>
        </asp:Panel>
        <asp:Panel ID="pnlBlogPager" runat="server" CssClass="blogpager">
            <portal:mojoCutePager ID="pgr" runat="server" />
        </asp:Panel>
    </asp:Panel>
    <div class="blogcopyright">
        <asp:Label ID="lblCopyright" runat="server" />
    </div>
    <div class="cleared"></div>
    <portal:DisqusWidget ID="disqus" runat="server" />
</div>
<div class="modulefooter">
</div>
